<template>
  <div class="g-content">
    <scan-code @ok="getResult" @err="geterror"></scan-code>
  </div>
</template>

<script>
import ScanCode from '@/components/ScanCode/index.vue'

export default {
  name: 'scan',
  components: {
    ScanCode
  },
  data() {
    return {}
  },
  created() {

  },
  methods: {
    getResult(result) {
      alert(result)
    },
    geterror(e) {
      alert(e)
    }
  }
}
</script>

<style lang="less" scoped>
</style>
